package com.hlingsoft.cms.entity.vo;

import com.hlingsoft.cms.constant.OrderInfoConstant;
import com.hlingsoft.cms.entity.OrderInfo;

import java.util.Date;

/**
 * Created by selbylei on 2015/5/25.
 */
public class OrderInfoListVo {
    private long id;
    private int status;
    private String orderId;
    private String showImage;
    private Date createTime;
    private Double payPrice;
    private String name;
    private String size;
    private int count;
    private String showStatus;
    private Date now;

    public Date getNow() {
        return now;
    }

    public void setNow(Date now) {
        this.now = now;
    }

    public String getShowStatus() {

        if (this.status== OrderInfoConstant.WAITPAY) {
            return "待付款";
        }
        else if (this.status==OrderInfoConstant.CANCEL) {
            return "已取消";
        } else if(this.status==OrderInfoConstant.OVERDUE){
            return "已过期";
        } else if (this.status==OrderInfoConstant.CHECK){
            return "审核中";
        } else if (this.status==OrderInfoConstant.WAITDELIVER){
            return "已支付";
        }

        return "";
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public void setShowStatus(String showStatus) {
        this.showStatus = showStatus;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getShowImage() {
        return showImage;
    }

    public void setShowImage(String showImage) {
        this.showImage = showImage;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Double getPayPrice() {
        return payPrice;
    }

    public void setPayPrice(Double payPrice) {
        this.payPrice = payPrice;
    }
}
